package com.zd.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-10-15 11:49
 **/
//TODO @EnableDiscoveryClient可被注册中心发现,可以做为注册中心拉去服务的注解,
//TODO @EnableEurekaClient只可被eureka注册中心发现,只可以拉去eureka的服务信息
@EnableDiscoveryClient
@EnableZuulProxy
@SpringBootApplication
public class GateWay {
    public static void main(String[] args) {
        SpringApplication.run(GateWay.class, args);
    }
}